Skip to main content

Link App to Dataset

This tutorial will show you how to link a backend app to a dataset.

  • Copy the following code snippet template

    // Copy this dataset code snippet
    "provider.new-dataset-name": {
    "permissions": [
    "read",
    "write"
    ]
    },
    "corva.data.drillstring": {
    "permissions": [
    "read"
    ]
    }
  • Open newly created app directory e.g. My-New-App

  • Open the manifest.json file

  • Paste the copied dataset code snippet into the "datasets" object

  • Revise the "provider.new-dataset-name" with the correct provider and dataset name.

  • See before and after examples below.

Example of manifest.json before updating the dataset key value pairs

//manifest.json before updating key value pairs
{
"format": 1,
"license": {
"type": "MIT",
"url": "https://www.oandgexample.com/license/"
},
"developer": {
"authors": []
},
"application": {
"type": "stream",
"key": "your-company.my-new-app-name.stream",
"visibility": "private",
"name": "My New App Name",
"category": "analytics",
"segments": ["drilling"]
},
"settings": {
"entrypoint": {
"file": "lambda_function",
"function": "lambda_handler"
},
"timeout": 120,
"memory": 128,
"runtime": "python3.8"
},
"environment": {},
"datasets": {
// Paste dataset template here
}
}

Example of manifest.json after updating dataset key value pairs

// manifest.json after updating key value pairs
{
"format": 1,
"license": {
"type": "MIT",
"url": "https://www.oandgexample.com/license/"
},
"developer": {
"authors": []
},
"application": {
"type": "stream",
"key": "your-company.my-new-app-name.stream",
"visibility": "private",
"name": "My New App Name",
"category": "analytics",
"segments": ["drilling"]
},
"settings": {
"entrypoint": {
"file": "lambda_function",
"function": "lambda_handler"
},
"timeout": 120,
"memory": 128,
"runtime": "python3.8"
},
"environment": {},
"datasets": {
"provider.new-dataset-name": {
"permissions": ["read", "write"]
},
"corva.data.drillstring": {
"permissions": ["read"]
}
}
}